<?php
/**
 *	Kolor
 *
 *	Theme by: Art Ramadani
 *	Developed by: Arlind Nushi
 *
 *	www.laborator.co
 */


// Header
get_header();

// Post Id
$post_id = get_the_ID();

# Import Required Resources
wp_enqueue_script(array('shadowbox', 'kolor_hover'));
wp_enqueue_style('shadowbox');


$phc_visible = get_post_meta($post_id, 'phc_visible', TRUE);

if($phc_visible == 0)
	$phc_visible = get_option('kolor_pagehead_captions_enable') == 'true' ? 1 : -1;
	

# Retrieve Global PHC-s
if($phc_visible != 1 && get_option('kolor_pagehead_captions_enable') == 'true')
{
	$phc_visible = 1;
	$is_default_phc = 1;
	
	$default_phc_title = get_option('kolor_pagehead_captions_title');
	$default_phc_description = get_option('kolor_pagehead_captions_description');
}

if($phc_visible == 1):
?>
<div class="bg_absolute content_page_bg bg_02">
	<!-- stripped border -->
	<div class="stripped_border"></div>
	<!-- end: stripped border -->		
</div>
<?php endif; ?>
	
<!-- site header -->
<div class="site_header bg_02">
<?php

	// Main Menu (optionally with sliders)
	get_template_part('tpls/header', 'menu');

	// Page Head Caption
	get_template_part('tpls/blocks', 'pageheadcaption');
	
?>
</div>
<!-- end: site header -->


<?php if($phc_visible != 1): ?>
<!-- stripped border -->
<div class="stripped_border<?php echo $phc_visible != 1 ? ' margin_bottom_double' : ''; ?>"></div>
<!-- end: stripped border -->
<?php endif; ?>

<?php

get_template_part('tpls/blocks', 'readmore');

// Footer Clients Block
get_template_part('tpls/blocks', 'footerclients');


// Footer Blocks
get_template_part('footer', 'block');


// Footer
get_footer();